package com.source.multithread.annotation;

import java.security.Principal;

/**
 * @Author wengqy
 * @Date 2021/1/8
 */
@QuanYuan(value = "db_stu")
public class Student {
    @FieldSourceAnta(value = "id",maxLength = 6)
    private int id;
    @FieldSourceAnta(value = "name",maxLength = 10)
    private String name;
    @FieldSourceAnta(value = "age",maxLength = 2)
    public int age;



    private  String studentStr(String sss){
        return  "studentStr"+sss;
    }

    public  Student studentStu(){
        return  new Student(1222,"wengg",22222);
    }


    public Student(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public int getId() {
        return id;
    }

    public Student() {
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
